package com.zcp.todayheadline;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

@ContentView(R.layout.activity_save)
public class SaveActivity extends AppCompatActivity implements View.OnClickListener {

    @ViewInject(R.id.image_save_back)
    ImageView image_save_back;

    @ViewInject(R.id.tv_save_edit)
    TextView tv_save_edit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.view().inject(this);
        //找控件
        initView();
    }

    //找控件
    public void initView() {
        image_save_back.setOnClickListener(this);
        tv_save_edit.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.image_save_back:
                onBackPressed();
                break;
            case R.id.tv_save_edit:
                break;
        }
    }
}
